package com.nys.cqhttp.model;

import java.util.ArrayList;
import java.util.List;

public class YuanShenConfigExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YuanShenConfigExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andNameIsNull() {
            addCriterion("`name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("`name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("`name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("`name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("`name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("`name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("`name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("`name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("`name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("`name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("`name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("`name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("`name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("`name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthIsNull() {
            addCriterion("military_strength is null");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthIsNotNull() {
            addCriterion("military_strength is not null");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthEqualTo(Integer value) {
            addCriterion("military_strength =", value, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthNotEqualTo(Integer value) {
            addCriterion("military_strength <>", value, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthGreaterThan(Integer value) {
            addCriterion("military_strength >", value, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthGreaterThanOrEqualTo(Integer value) {
            addCriterion("military_strength >=", value, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthLessThan(Integer value) {
            addCriterion("military_strength <", value, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthLessThanOrEqualTo(Integer value) {
            addCriterion("military_strength <=", value, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthIn(List<Integer> values) {
            addCriterion("military_strength in", values, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthNotIn(List<Integer> values) {
            addCriterion("military_strength not in", values, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthBetween(Integer value1, Integer value2) {
            addCriterion("military_strength between", value1, value2, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andMilitaryStrengthNotBetween(Integer value1, Integer value2) {
            addCriterion("military_strength not between", value1, value2, "militaryStrength");
            return (Criteria) this;
        }

        public Criteria andLifeIsNull() {
            addCriterion("life is null");
            return (Criteria) this;
        }

        public Criteria andLifeIsNotNull() {
            addCriterion("life is not null");
            return (Criteria) this;
        }

        public Criteria andLifeEqualTo(Integer value) {
            addCriterion("life =", value, "life");
            return (Criteria) this;
        }

        public Criteria andLifeNotEqualTo(Integer value) {
            addCriterion("life <>", value, "life");
            return (Criteria) this;
        }

        public Criteria andLifeGreaterThan(Integer value) {
            addCriterion("life >", value, "life");
            return (Criteria) this;
        }

        public Criteria andLifeGreaterThanOrEqualTo(Integer value) {
            addCriterion("life >=", value, "life");
            return (Criteria) this;
        }

        public Criteria andLifeLessThan(Integer value) {
            addCriterion("life <", value, "life");
            return (Criteria) this;
        }

        public Criteria andLifeLessThanOrEqualTo(Integer value) {
            addCriterion("life <=", value, "life");
            return (Criteria) this;
        }

        public Criteria andLifeIn(List<Integer> values) {
            addCriterion("life in", values, "life");
            return (Criteria) this;
        }

        public Criteria andLifeNotIn(List<Integer> values) {
            addCriterion("life not in", values, "life");
            return (Criteria) this;
        }

        public Criteria andLifeBetween(Integer value1, Integer value2) {
            addCriterion("life between", value1, value2, "life");
            return (Criteria) this;
        }

        public Criteria andLifeNotBetween(Integer value1, Integer value2) {
            addCriterion("life not between", value1, value2, "life");
            return (Criteria) this;
        }

        public Criteria andAttackIsNull() {
            addCriterion("attack is null");
            return (Criteria) this;
        }

        public Criteria andAttackIsNotNull() {
            addCriterion("attack is not null");
            return (Criteria) this;
        }

        public Criteria andAttackEqualTo(Integer value) {
            addCriterion("attack =", value, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackNotEqualTo(Integer value) {
            addCriterion("attack <>", value, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackGreaterThan(Integer value) {
            addCriterion("attack >", value, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackGreaterThanOrEqualTo(Integer value) {
            addCriterion("attack >=", value, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackLessThan(Integer value) {
            addCriterion("attack <", value, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackLessThanOrEqualTo(Integer value) {
            addCriterion("attack <=", value, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackIn(List<Integer> values) {
            addCriterion("attack in", values, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackNotIn(List<Integer> values) {
            addCriterion("attack not in", values, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackBetween(Integer value1, Integer value2) {
            addCriterion("attack between", value1, value2, "attack");
            return (Criteria) this;
        }

        public Criteria andAttackNotBetween(Integer value1, Integer value2) {
            addCriterion("attack not between", value1, value2, "attack");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthIsNull() {
            addCriterion("level_military_strength is null");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthIsNotNull() {
            addCriterion("level_military_strength is not null");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthEqualTo(Integer value) {
            addCriterion("level_military_strength =", value, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthNotEqualTo(Integer value) {
            addCriterion("level_military_strength <>", value, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthGreaterThan(Integer value) {
            addCriterion("level_military_strength >", value, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthGreaterThanOrEqualTo(Integer value) {
            addCriterion("level_military_strength >=", value, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthLessThan(Integer value) {
            addCriterion("level_military_strength <", value, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthLessThanOrEqualTo(Integer value) {
            addCriterion("level_military_strength <=", value, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthIn(List<Integer> values) {
            addCriterion("level_military_strength in", values, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthNotIn(List<Integer> values) {
            addCriterion("level_military_strength not in", values, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthBetween(Integer value1, Integer value2) {
            addCriterion("level_military_strength between", value1, value2, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelMilitaryStrengthNotBetween(Integer value1, Integer value2) {
            addCriterion("level_military_strength not between", value1, value2, "levelMilitaryStrength");
            return (Criteria) this;
        }

        public Criteria andLevelLifeIsNull() {
            addCriterion("level_life is null");
            return (Criteria) this;
        }

        public Criteria andLevelLifeIsNotNull() {
            addCriterion("level_life is not null");
            return (Criteria) this;
        }

        public Criteria andLevelLifeEqualTo(Integer value) {
            addCriterion("level_life =", value, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeNotEqualTo(Integer value) {
            addCriterion("level_life <>", value, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeGreaterThan(Integer value) {
            addCriterion("level_life >", value, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeGreaterThanOrEqualTo(Integer value) {
            addCriterion("level_life >=", value, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeLessThan(Integer value) {
            addCriterion("level_life <", value, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeLessThanOrEqualTo(Integer value) {
            addCriterion("level_life <=", value, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeIn(List<Integer> values) {
            addCriterion("level_life in", values, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeNotIn(List<Integer> values) {
            addCriterion("level_life not in", values, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeBetween(Integer value1, Integer value2) {
            addCriterion("level_life between", value1, value2, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelLifeNotBetween(Integer value1, Integer value2) {
            addCriterion("level_life not between", value1, value2, "levelLife");
            return (Criteria) this;
        }

        public Criteria andLevelAttackIsNull() {
            addCriterion("level_attack is null");
            return (Criteria) this;
        }

        public Criteria andLevelAttackIsNotNull() {
            addCriterion("level_attack is not null");
            return (Criteria) this;
        }

        public Criteria andLevelAttackEqualTo(Integer value) {
            addCriterion("level_attack =", value, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackNotEqualTo(Integer value) {
            addCriterion("level_attack <>", value, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackGreaterThan(Integer value) {
            addCriterion("level_attack >", value, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackGreaterThanOrEqualTo(Integer value) {
            addCriterion("level_attack >=", value, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackLessThan(Integer value) {
            addCriterion("level_attack <", value, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackLessThanOrEqualTo(Integer value) {
            addCriterion("level_attack <=", value, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackIn(List<Integer> values) {
            addCriterion("level_attack in", values, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackNotIn(List<Integer> values) {
            addCriterion("level_attack not in", values, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackBetween(Integer value1, Integer value2) {
            addCriterion("level_attack between", value1, value2, "levelAttack");
            return (Criteria) this;
        }

        public Criteria andLevelAttackNotBetween(Integer value1, Integer value2) {
            addCriterion("level_attack not between", value1, value2, "levelAttack");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}